/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 快递工具Entity
 * @author xxs
 * @version 2016-08-31
 */
public class ExpressPrice extends DataEntity<ExpressPrice> {
	
	private static final long serialVersionUID = 1L;
	private ExpressTools expressTools;		// 快递工具 父类
	private Double firstWeight;		// 首重
	private Double defaultFirstPrice;		// 首重价格
	private Double continueWeight;		// 续重
	private Double defaultContinuePrice;		// 续重价格
	private ShopArea shopArea;		// 地区
	
	public ExpressPrice() {
		super();
	}

	public ExpressPrice(String id){
		super(id);
	}

	public ExpressPrice(ExpressTools expressTools){
		this.expressTools = expressTools;
	}

	@Length(min=1, max=64, message="快递工具长度必须介于 1 和 64 之间")
	public ExpressTools getExpressTools() {
		return expressTools;
	}

	public void setExpressTools(ExpressTools expressTools) {
		this.expressTools = expressTools;
	}
	
	public Double getFirstWeight() {
		return firstWeight;
	}

	public void setFirstWeight(Double firstWeight) {
		this.firstWeight = firstWeight;
	}
	
	public Double getDefaultFirstPrice() {
		return defaultFirstPrice;
	}

	public void setDefaultFirstPrice(Double defaultFirstPrice) {
		this.defaultFirstPrice = defaultFirstPrice;
	}
	
	public Double getContinueWeight() {
		return continueWeight;
	}

	public void setContinueWeight(Double continueWeight) {
		this.continueWeight = continueWeight;
	}
	
	public Double getDefaultContinuePrice() {
		return defaultContinuePrice;
	}

	public void setDefaultContinuePrice(Double defaultContinuePrice) {
		this.defaultContinuePrice = defaultContinuePrice;
	}
	
	@Length(min=0, max=255, message="地区长度必须介于 0 和 255 之间")
	public ShopArea getShopArea() {
		return shopArea;
	}

	public void setShopArea(ShopArea shopArea) {
		this.shopArea = shopArea;
	}
	
}